Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Avoid calling representative_presenter for each child work on a parent show page #731

Merged
merged 1 commit into from Jul 25, 2017

Conversation

jrochkind
Copy link
Contributor

It results in three trips to Solr and is too expensive.

To avoid it, we index the data we need directly on the work itself.

This does seem to significantly improve performance, and is probably the cause of
our last remaining perf problem crosses fingers.

I separately PR'd the indexing changes to master. I did them here too, which
might cause a conflict on merge, but since the GenericWorkIndexer changes
paths between the branches, I was worried it might end up lost entirely
and not properly merged without a conflcit, I'd rather a conflict so
we make sure it winds up here.

…t show page

It results in three trips to Solr and is too expensive.

To avoid it, we index the data we need directly on the work itself.

This does seem to significantly improve performance, and is probably the cause of
our last remaining perf problem crosses fingers.

I separately PR'd the indexing changes to master. I did them here too, which
might cause a conflict on merge, but since the GenericWorkIndexer changes
paths between the branches, I was worried it might end up lost entirely
and not properly merged without a conflcit, I'd rather a conflict so
we make sure it winds up here.
@hackartisan hackartisan merged commit 6c756d1 into riiif Jul 25, 2017
@hackartisan hackartisan deleted the riiif_avoid_representative_presenter branch July 25, 2017 13:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants